package adaptorDemo.example2;

/**
 * @author zsh
 * @Description
 * @create 2022-04-19 19:15
 */
public class PrintBanner extends PrintDemo {

    private Banner banner;

    public PrintBanner(String str) {
        this.banner = new Banner(str);
    }

    @Override
    public void printWeak() {
        banner.showWithParen();
    }

    @Override
    public void printStrong() {
        banner.showWithAster();
    }
}
